<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.jsp"%>

<c:choose>
	<c:when test="${fn:length(usersList) gt 0 }">
		<div>
			<form id="submitUserForDetails" name="submitUserForDetails">
				<table class="adminFilterTable">
					<tr class="tableChildHeaderColor">
						<td colspan="51" align="center">MAP SUPERFICIAL ROLES</td>
					</tr>
					<tr class="formSpacingRow">
						<td></td>
					</tr>
					<tr class="formSpacingRow">
						<td class="spacingColumnWidthLess"></td>
						<td class="formLabel">Selected Role:</td>
						<td class="spacingColumnWidthLess"></td>
						<td class="formLabel">${roleName}
						</td>
					</tr>
					<tr>
						<td class="spacingColumnWidthLess"></td>
						<td class="formLabel">Users List:</td>
						<td class="spacingColumnWidthLess"></td>
						<td class="formLabel">
							<table>
								<tr>
									<td><c:forEach items="${usersList}" var="usersList">
											<input type="radio" id="radio" name="radio"
												value="${usersList},${roleId}" /> ${usersList}
								</c:forEach></td>
								</tr>
							</table>
						</td>
						<td class="spacingColumnWidthLess"></td>
					</tr>
					<tr class="formSpacingRow">
						<td></td>
					</tr>
					<tr>
						<td class="spacingColumnWidthLess"></td>
						<td></td>
						<td class="spacingColumnWidthLess"></td>
						<td><input class="formButton ui-corner-all" type="button"
							value="SUBMIT" onclick="javascript:submitUserForBuMapping();">
						</td>
					</tr>
					<tr class="formSpacingRow">
						<td></td>
					</tr>
				</table>
			</form>
		</div>
	</c:when>
	<c:otherwise>
		<div>
			<span>No users have been mapped to selected role of ${roleName}</span>
		</div>
	</c:otherwise>
</c:choose>

